home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / doc / python-apt / text / aptsources / distinfo.txt next >
Encoding:
Text File  |  2009-03-30  |  1.2 KB  |  58 lines

  1.  
  2. ``aptsources.distinfo`` --- provide meta information for distro repositories
  3. ****************************************************************************
  4.  
  5. Note: This part of the documentation is created automatically.
  6.  
  7. class aptsources.distinfo.Component(name, desc=None, long_desc=None)
  8.  
  9.    get_description()
  10.  
  11.    get_description_long()
  12.  
  13.    set_description(desc)
  14.  
  15.    set_description_long(desc)
  16.  
  17. class aptsources.distinfo.DistInfo(dist=None, base_dir='/usr/share/python-apt/templates')
  18.  
  19.    finish_template(template, component)
  20.  
  21.       finish the current tempalte
  22.  
  23. class aptsources.distinfo.Mirror(proto, hostname, dir, location=None)
  24.  
  25.    Storage for mirror related information
  26.  
  27.    add_repository(proto, dir)
  28.  
  29.    get_location()
  30.  
  31.    get_repo_urls()
  32.  
  33.    get_repositories_for_proto(proto)
  34.  
  35.    has_repository(proto, dir)
  36.  
  37.    set_location(location)
  38.  
  39. class aptsources.distinfo.Repository(proto, dir)
  40.  
  41.    get_info()
  42.  
  43.    get_url(hostname)
  44.  
  45. class aptsources.distinfo.Template
  46.  
  47.    has_component(comp)
  48.  
  49.       Check if the distribution provides the given component
  50.  
  51.    is_mirror(url)
  52.  
  53.       Check if a given url of a repository is a valid mirror
  54.  
  55. aptsources.distinfo.split_url(url)
  56.  
  57.    split a given URL into the protocoll, the hostname and the dir part
  58.